package com.hamll.common.client;

import com.hamll.common.dto.AddressDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "userservice")
public interface UserClient {
    @GetMapping("/address/{id}")
    AddressDTO findAddressById(@PathVariable(name = "id") Long id);
}
